<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数是对象</title>
</head>

<body>
    <p> arguments.length 属性返回函数接收到参数的个数：</p>
    <p id="demo"></p>
    <script>
        function myFunction(a, b) {
            return arguments.length;
        }
        document.getElementById("demo").innerHTML = myFunction(4, 3);
    </script>
</body>

</html>